<div class="ssy-header ssy-header-default ssy-header-fixed">
    <div class="container">
        <div class="logo-text">
            <a href="{$domain}">{$settingInfo['siteName']}</a>
        </div>
        <ul class="header-list">
            <li class='header-item '>
                <a href="{$domain}" class='header-link {if condition="$ctr=='Index'"}active{/if}' title='首页'>首页</a>
            </li>
            {if condition='$settingInfo.isDiyNav'}
                {tag:nav id="v" type='menu'}
                <li class='header-item'>
                    <a href="{$v.url}" class='header-link' title="{$v.title}">{$v.title}</a>
                </li>
                {/tag:nav}
            {else/}
                {tag:articlecategory id="v" limit='18'}
                {if condition='$v["sub"]'}
                   <li class="header-item">
                      <a class="header-link dropdown-toggle {if condition="$categoryUrlName==$v['url_name']"}active{/if}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        {$v['title']}
                      </a>
                      <div class="dropdown-menu">
                        {tag:articlecategory id="c" pid='$v["id"]'}
                            <a class="dropdown-item" href="{$c.url}">{$c['title']}</a>
                        {/tag:articlecategory}
                      </div>
                    </li>
                {else/}
                    <li class='header-item'>
                        <a href="{$v.url}" class='header-link {if condition="$categoryUrlName==$v['url_name']"}active{/if}' title="{$v['title']}">{$v['title']}</a>
                    </li>
                {/if}
                {/tag:articlecategory}
            {/if}
        </ul>
        <div class="header-search-link-warp">
            <a class="my-2 my-sm-0 search-icon" href="{$domain}/search/">
                <img layout="fixed" width="20" height='20' src="{$domainStatic}/{$tplPath}/{$tplName}/images/search.png" />
            </a>
        </div>
    </div>
</div>
